package com.woniu.car.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class CouponLogsParameter {
    @Min(value=0,message = "参数不合法")
    @NotNull(message = "不合规的新增数据")
    @ApiModelProperty(value = "优惠券使用者id",example = "0")
    private Integer userId;
    @Min(value=0,message = "参数不合法")
    @NotNull(message = "不合规的新增数据")
    @ApiModelProperty(value = "优惠券使用者id",example = "0")
    private Integer createRole;
    @Min(value=0,message = "参数不合法")
    @NotNull(message = "不合规的新增数据")
    @ApiModelProperty(value = "优惠券id",example = "0")
    private Integer couponId;
    @NotNull(message = "不合规的新增数据")
    @ApiModelProperty(value = "优惠券编号")
    private String couponNo;
    @NotNull(message = "不合规的新增数据")
    @ApiModelProperty(value = "优惠券种类",example = "0")
    private Integer type;
    @Min(value=0,message = "参数不合法")
    @ApiModelProperty(value = "抵扣金额",example = "0.0")
    private Double couponMoney;
    @Min(value=0,message = "参数不合法")
    @ApiModelProperty(value = "",example = "0.0")
    private Double discountMoney;
    @Min(value=0,message = "参数不合法")
    @NotNull(message = "不合规的新增数据")
    @ApiModelProperty(value = "无门槛抵用金额",example = "0.0")
    private Double fullMoney;
    @Min(value=0,message = "参数不合法")
    @NotNull(message = "不合规的新增数据")
    @ApiModelProperty(value = "订单id",example = "0")
    private Integer detailId;
    @NotNull(message = "不合规的新增数据")
    @ApiModelProperty(value = "订单编号")
    private String detailNo;
    @Min(value=0,message = "参数不合法")
    @NotNull(message = "不合规的新增数据")
    @ApiModelProperty(value = "商品原价",example = "0.0")
    private Double beforeMoney;
    @Min(value=0,message = "参数不合法")
    @NotNull(message = "不合规的新增数据")
    @ApiModelProperty(value = "商品折扣后价格",example = "0.0")
    private Double afterMoney;
    @Min(value=0,message = "参数不合法")
    @NotNull(message = "不合规的新增数据")
    @ApiModelProperty(value = "消费券领取id",example = "0")
    private Integer couponReceiveId;
}
